import request from '@/utils/request'
let ProxyApi = {
  proxyList(data, errorback) {
    return request._post('/shop/proxy.proxy/index', data, errorback);
  },
  addProxy(data, errorback) {
    return request._post('/shop/proxy.proxy/add', data, errorback);
  },
  /*代理编辑*/
  toEditProxy(data, errorback) {
    return request._get('/shop/proxy.proxy/edit', data, errorback);
  },
  /*代理编辑*/
  editProxy(data, errorback) {
    return request._post('/shop/proxy.proxy/edit', data, errorback);
  },
  proxyRecycle(data, errorback) {
    return request._post('/shop/proxy.proxy/recycle', data, errorback);
  },
  /*删除代理*/
  deleteProxy(data, errorback) {
    return request._post('/shop/proxy.proxy/delete', data, errorback);
  },
};


export default ProxyApi;
